<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@include file="he_includePackage.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet"
	href="<%=request.getContextPath()%>/pages1/css/jquery-ui.min.css"
	type="text/css">

<script
	src="<%=request.getContextPath()%>/pages1/js/jquery-ui-i18n.min.js"
	type="text/javascript"></script>

</head>

<body>
	<style>
.col-xs-3 {
	padding: 1px;
	height: 1525px;
}

.col-xs-9 {
	height: 1525px;
}

.container {
	width: 1280px !important;
}

.xs11 {
	margin-top: 20px;
	margin-left: 30px;
}

#xs12 {
	height: 1419px;
	width: 313px;
}

#xs11 {
	height: 140px;
}

#xs10 {
	height: 110px;
}

#xs1 {
	height: 100px;
	width: 80px;
}

body {
	font-size: 12px;
}

ul {
	margin: 0;
	padding: 7px;
}

ul li {
	height: 22px;
	vertical-align: bottom;
}

.actived {
	height: 40px;
	border-top: 3px solid #ff9900;;
	border-right: 1px solid #AAC7E9;
	border-left: 1px solid #AAC7E9;
	border-bottom: 1px solid #AAC7E9;
	background: #FFDAB9;
}

.panel-group {
	padding: 1px;
	margin：1px;
}

td {
	text-align: center;
}

th {
	text-align: center;
}
</style>
<script>
		myclick=function(ssid){
		$.post("<%=request.getContextPath()%>/dissertationtea/editShyj/",{
		'id':ssid,},function(r){
		document.location.reload();	
		//document.getElementById("TeacherShowInfo").val("");
		},'json');
		}
		$(function() {
			midcheck = $("#midcheck").datagrid({
			
				url : '<%=request.getContextPath()%>/confirmed',
				title : '论文选题',
				resizeable:true,
				pageSize: 5,//每页显示的记录条数，默认为10 
	       		pageList: [5,10,15],//可以设置每页记录条数的列表 
				pagination : true,
				singleSelect : true,
				sortName : 'id',
				sortOrder : 'asc',
				//fit : true,
				fitColumns : true,
				columns : [ [ {
					field : 'id',
					title : 'id',
					width : 50,
					sortable : true,
					checkbox:true,
				}, {
					field : 'thesistitle_name',
					title : '课题名称',
					width : 150,
				}, {
					field : 'thesistitle_type',
					title : '类型',
					width : 50,
				}, {
					field : 'thesistitle_source',
					title : '来源',
					width : 100,
					formatter: function(value,row,index){
					
					if (value=='1'){
						return '国家级';
					} ;
					if(value=='2'){
						return '省级';
					}
					if(value=='3'){
						return '公司级';
					}
					if(value=='4'){
						return '校级';
					}
				},
				},  {
					field : '',
					title : '检查项目',
					width : 100,
					formatter:function(value,row){
						return '中期检查';
						console.info(row);
					},
				}, {
					field : 'Sin',
					title : '学生学号,姓名',
					width : 100
				},{
					field : 'thesistitle_checkstate',
					title : '审核状态',
					width : 100,
					formatter: function(value,row,index){
					if (value=='B'){
						return '未审核';
					} ;
					if(value=='C'){
						return '指导教师审核未通过';
					};
					if(value=='D'){
						return '指导教师审核通过';
					};
					if(value=='E'){
						return '修改通过';
					};
					if(value=='F'){
						return '专业负责人审核未通过';
					};
					if(value=='G'){
						return '专业负责人审核通过';
					};
					if(value=='H'){
						return '教务审核未通过';
					};
					if(value=='I'){
						return '教务审核通过';
					};
				},
				},{
					field : 'dissIsUes',
					title : '审核操作',
					width : 100,
				},
				] ],
				 toolbar: [{
					 	text:'编辑中期检查表',
				   		iconCls: 'icon-edit',
				   		handler: function(){
				   		var rows=midcheck.datagrid('getSelections');
				   		console.info(rows);
               			 if(rows.length==1){
                				$('#giveView').dialog({   
				   				 title: '编辑中期检查表',    
				    						width: 1000,    
				    						height: 900,    
				    						closed: false,    
				    						cache: false,  
				    						//href: "<%=request.getContextPath()%>/inoo?id="+rows,
				    						href: "<%=request.getContextPath()%>/inoo?id="+rows[0].student_id+"&tid="+rows[0].thesistitle_id,
				   						 	modal: true,
											}); 
              			  }
				   		}
				 
				   	},'-',{
				   		text: '取消选中', 
           				 iconCls: 'icon-redo', 
           				 handler: function(){ 
              			 editRow=undefined;
              		 	 midcheck.datagrid('unselectAll');//取消所有选中的行
              			 midcheck.datagrid('rejectChanges');//回滚
            } ,
				   	}
				   	,
				   	]
			      
			})

	

				//老师带的学生列表
			var url = "${pageContext.request.contextPath}/TeaStu";
				$.getJSON(url, function(json) {
				$('#stuList').combobox({
				data:json.rows,
				valueField:'id',
				textField:'Sin',//学生姓名，学号。后台已经作字段连接
				});
				});	
		})
</script>
<script type="text/javascript" language="javascript">
function g(o){return document.getElementById(o);}
function hoverli(n){
for(var i=1;i<=17;i++){
{g('tb_'+i).className='';}
g('tb_'+n).className='actived';}
}
function showWhat()
		{
			var collap=document.getElementById('collapseHelp');
			if(collap.style.display=='none')
				collap.style.display='block';
			else
				collap.style.display='none';
		}
</script>
		<div class="row">
			<div class="col-xs-12  xs11">
				<strong><font size="3">流程管理》审核中期检查</font>
				</strong>
			</div>
		</div>
		<div class="row">
			<div class="col-xs-11  xs11">
				<div class="panel panel-default">
					<div class="panel-heading" align="left">
						<a data-toggle="collapse" data-parent="#accordion"
							href="#collapseHelp" class="glyphicon glyphicon-chevron-down" onclick="showWhat()">
							操作指南 </a>
					</div>
					<div id="collapseHelp" class="panel-collapse collapse" >
						<div class="panel-body">
							毕业论文中期检查报告：
							<ol>
								<li>论文中期检查报告由指导教师根据学生完成论文的情况进行审核，不通过，需要给出理由。通过后，提交中期检查报告，完成中期检查</li>
								<li>学生可以通过点击审核状态中的查看按钮，查看中期检查报告。</li>
							</ol>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div id="giveView"></div>
		<div class="row">
			<div class="col-xs-12">
				<div class="col-xs-11">
					<br>
					<p>
						<b><font size="3">毕业设计流转状态：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;中期检查阶段
					</p>
					</b></font> <br>
				</div>
				<br>
			</div>
		</div>
		  <div style="height:auto;">
                	<table width="100%" id="midcheck">
               		 </table>
                </div>
                
		
		
		
			
			
</body>
</html>
